package zee.com.customviewexample.activity

import android.view.View
import com.zee.dialog.MyTimeDialog
import com.zee.listener.OnMyTimeSelectListener
import com.zee.log.ZLog
import kotlinx.android.synthetic.main.activity_dialog_time_dialog.*
import zee.com.customviewexample.R
import java.util.*

/**
 * 时间选择器
 */
class ZxMyTimeDialogActivity : BaseActivity() {
    override fun getLayoutID(): Int {
        return R.layout.activity_dialog_time_dialog
    }

    override fun initViews() {
        tv_time_bottom.setOnClickListener {
            MyTimeDialog.newMyTimeDialog(object : OnMyTimeSelectListener {
                override fun onTimeSelect(date: Date, v: View?) {
                    ZLog.i(date)
                }
            }).show()
        }
    }
}
